package com.itheima.d1_create_thread;

public class DrawThread extends Thread{
    private Account acc;
//有参构造
    public DrawThread( Account acc,String name) {
        super(name);
        this.acc = acc;
    }

    @Override
    public void run() {
        //谁取钱，小明还是小红
        acc.drawMoney(100000);
    }
}
